s = {10,20,30}
t = {20,30,40}
# a = s & t # 交集
# a = s | t # 并集
# a = s - t # 差集
a = s ^ t  # 对称差集
print(a)